package com.lkd.feign;
import com.lkd.feign.fallback.OrderServiceFallbackFactory;
import com.lkd.feign.fallback.UserServiceFallbackFactory;
import com.lkd.vo.PartnerVO;
import com.lkd.vo.PayVO;
import com.lkd.vo.UserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(value = "order-service",fallbackFactory = OrderServiceFallbackFactory.class)
public interface OrderService {

    @PostMapping("/order/weixinPay")
    public Map<String, String> weixinPay(@RequestBody PayVO payVO);
}
